What is a nested for-loop and how can it be used with multidimensional arrays